home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 56 / MOBICLIC 56.ISO / DATA / ARRIBA / SWF_ARRIBA / ARRI02 SWF / ARRI02.swf / scripts / DefineButton2_38 / BUTTONCONDACTION on(release, releaseOutside).as < prev   
Text File  |  2003-07-09  |  691b  |  25 lines

  1. on(release, releaseOutside){
  2.    stopDrag();
  3.    tellTarget(vSelf add "/drag")
  4.    {
  5.       gotoAndStop(1);
  6.    }
  7.    if(eval(vSelf add ":vSelected"))
  8.    {
  9.       set(vFloor add ":vId",eval(vSelf add ":vId"));
  10.       call(vFloor add ":mClearFromSelection");
  11.    }
  12.    else
  13.    {
  14.       set(vFloor add ":vId",eval(vSelf add ":vId"));
  15.       call(vFloor add ":mAddToSelection");
  16.    }
  17.    call(vSelf add "/../../controls:nUpdateFromSelection");
  18.    if(getProperty(getProperty("../../../..", _droptarget), _name) eq "door")
  19.    {
  20.       trace("drag:" add eval("../../../..:vId"));
  21.       set("../../../../..:vId",eval("../../../..:vId"));
  22.       call("../../../../..:mClearDancer");
  23.    }
  24. }
  25.